﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ScorePanel : MonoBehaviour
{
    private Text scoreText;

    private void Awake()
    {
        scoreText = transform.Find("TextScore").GetComponent<Text>();
    }

    // Update is called once per frame
    void Update()
    {
        scoreText.text = Mathf.Min(GameManager.Instance.score, GameManager.GetData().successScore).ToString() + "/" + GameManager.GetData().successScore;
    }
}
